package com.fxu.mq.consumer;

import com.fxu.framework.mq.redis.simple.RedisMqListener;
import com.fxu.mq.message.RedisSimpleMessage;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 针对 {@link RedisSimpleMessage} 的消费者
 * @author fangxu
 */
@Slf4j
@Component
public class RedisSimpleConsumer extends RedisMqListener<RedisSimpleMessage> {

    @Override
    public boolean onMessage(RedisSimpleMessage message) {
        log.info("[onMessage][消息内容({})]", message);
        return true;
    }

}
